package com.heima.behavior.util;

import com.heima.behavior.thread.AppThreadLocalUtil;
import com.heima.model.user.pojos.ApUser;

public class ParamJudge {
	public static ApUser DtoAndUser(Object dto) {
		if (dto == null) {
			return null;
		}
		ApUser user = AppThreadLocalUtil.getUser();
		if (user == null || user.getId() == null) {
			return  null;
		}
		
		return user;
	}
}
